<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%sys_bzj_recharge}}".
 *
 * @property integer $id
 * @property integer $uid
 * @property double $account
 * @property integer $cardid
 * @property integer $status
 * @property integer $operatorid
 * @property integer $type
 * @property integer $apply_time
 * @property integer $audit_time
 * @property string $remark
 * @property integer $orderid
 */
class BzjRecharge extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sys_bzj_recharge}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['uid', 'cardid', 'status', 'operatorid', 'type', 'apply_time', 'audit_time', 'orderid'], 'integer'],
            [['account'], 'number'],
            [['remark'], 'string', 'max' => 120]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'account' => '充值金额',
            'cardid' => '充值银行卡or支付宝帐号or微信帐号',
            'status' => '0充值申请中 1充值成功 2失败',
            'operatorid' => '操作员id',
            'type' => '1线下 2支付宝 3微信',
            'apply_time' => '申请时间',
            'audit_time' => '审核时间',
            'remark' => '备注',
            'orderid' => 'Orderid',
        ];
    }
}
